<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Artikler extends CI_Controller {

	public function index()
	{

		$userLoggedIn = $this->tank_auth->is_logged_in();
		$data = array("userLoggedIn" => $userLoggedIn);

$this->load->model('Artikel');
$artikler = $this->Artikel->get_articles();
$data["artikler"] = $artikler;
		$this->load->view('structure/header.php', $data);
		$this->load->view('artikler/artikler.php', $data);

		$this->load->view('structure/footer.php');
	}
	
}